home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine CD 1995 / Archive Magazine CD 1995.iso / discs / shareware / share_41 / assembler / examples / multiply < prev    next >
Text File  |  1991-05-14  |  279b  |  14 lines

  1. ; NAME       multiply
  2. ; PURPOSE    multiplies number1 * number2 to give number3
  3. ; DESIGN    
  4. ;            copy number1, number2, number3 to r6, r7, r8
  5. ;            multiply
  6. ;            store result in number3
  7.  
  8.  
  9. ldr r6, [r1]
  10. ldr r7, [r2]
  11. ldr r8, [r3]
  12. mul r8, r7, r6
  13. str r8, [r3]
  14.